package Leetcode;

public class Leetcode_276 {
    public static int maximumScore(int a, int b, int c) {
        int sum = a + b + c;
        int maxVal = Math.max(Math.max(a, b), c);
        return Math.min(sum - maxVal, sum / 2);
    }

    public static void main(String[] args) {
        int a = 2, b = 4, c = 6;
        System.out.println(maximumScore(a,b,c));
    }
}
